class Duck:
    def walk(self):
        print(f'I am duck, walk with {self}')

    def drink(self):
        print(f'I am duck, drink with {self}')


class SmallBird:
    def walk(self):
        print(f'I am also duck, walk with {self}')

    def drink(self):
        print(f'I am also duck, drink with {self}')


def duck_action_run(obj):
    obj.walk()
    obj.drink()


duck = Duck()
smallBird = SmallBird()
duck_action_run(duck)

print('*' * 10)
duck_action_run(smallBird)
